//
//  GS_DubTableViewCell.m
//  GoodManNews
//
//  Created by dllo on 16/1/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "GS_DubTableViewCell.h"

@implementation GS_DubTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}

-(void)dealloc
{
    [_ImageV release];
    [_Label release];
    [super dealloc];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.ImageV mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.left.top.equalTo(self.contentView).with.offset(15);
        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-15);
        make.right.equalTo(self.Label.mas_left).with.offset(-10);
        make.width.mas_equalTo(@40);
    }];
    
    [self.Label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(self.contentView.mas_top).with.offset(10);
        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-10);
        make.right.equalTo(self.contentView).with.offset(-10);
//        make.width.mas_equalTo(@200);
    }];
}

- (void)createSubviews
{
    self.ImageV = [UIImageView new];
    self.ImageV.image = [UIImage imageNamed:@"list_FM_playIcon_night@3x"];
    [self.contentView addSubview:self.ImageV];
//    self.ImageV.backgroundColor = [UIColor blackColor];
    
    self.Label = [UILabel new];
    [self.contentView addSubview:self.Label];
//    self.Label.backgroundColor = [UIColor blackColor];
    self.Label.numberOfLines = 0;
    self.Label.font = [UIFont systemFontOfSize:13];
    self.Label.textAlignment = NSTextAlignmentLeft;
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
